package com.javasm.error;

import lombok.Getter;

/**
 * @className: JavasmException
 * @description
 * @author: gfs
 * @date: 2024/7/3 14:47
 * @version: 0.1
 * @since : jdk11
 */
@Getter
public class JavasmException extends RuntimeException{

    private ExceptionEnum exceptionEnum;

    public JavasmException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMsg());
        this.exceptionEnum = exceptionEnum;
    }
}
